#!/usr/bin/env bash
###
 # @Author: zwf 240970521@qq.com
 # @Date: 2023-07-14 01:12:21
 # @LastEditors: zwf 240970521@qq.com
 # @LastEditTime: 2023-08-20 09:35:45
 # @FilePath: /esp32_cmake_test/run-esp32.sh
 # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
### 
cd build
sudo chmod 777 $1
# cat $1
python $IDF_PATH/components/esptool_py/esptool/esptool.py -p $1 -b 460800 write_flash @flash_project_args
# python -m esp_idf_monitor -p $1 cmake_test.elf
#openocd -f board/esp32-wrover-kit-1.8v.cfg
